#if !defined(AFX_KPINPOLICYDLG_H__16C85866_596C_4F43_81E6_1A3426078D31__INCLUDED_)
#define AFX_KPINPOLICYDLG_H__16C85866_596C_4F43_81E6_1A3426078D31__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// KPINPolicyDlg.h : header file
//

#include "resource.h"
#include "KDcom.h"
/////////////////////////////////////////////////////////////////////////////
// KPINPolicyDlg dialog

extern KDcom theDcom;

class KPINPolicyDlg : public CDialog
{
// Construction
public:
	CString	m_strOriginalDefPIN;
	int		m_iOriginalMinPINCodeLen;
	int		m_iOriginalMaxPINCodeLen;
	void LoadPinPolicy();
	KPINPolicyDlg(CWnd* pParent = NULL);   // standard constructor
	BOOL m_ifForceNoExistMiniToken;
	BOOL m_ifExistPinPolicy;

// Dialog Data
	//{{AFX_DATA(KPINPolicyDlg)
	enum { IDD = IDD_PIN_POLICY };
	CButton	m_cbtnChange;
	CButton	m_cbtnCancel;
	CEdit	m_cedtMinPINCodeLen;
	CEdit	m_cedtMaxPINCodeLen;
	CEdit	m_cedtDefPIN;
	CString	m_strDefPIN;
	int		m_iMaxPINCodeLen;
	int		m_iMinPINCodeLen;
	int		m_iPINVerifyMode;
	int		m_iPinPos;
	BOOL	m_ifAlwaysSetPin;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(KPINPolicyDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	BOOL m_ifEnableSetPinPolicy;

	// Generated message map functions
	//{{AFX_MSG(KPINPolicyDlg)
	afx_msg void OnKillfocusEdtDefPIN();
	virtual BOOL OnInitDialog();
	virtual void OnOK();
	afx_msg void OnRadNoPin();
	afx_msg void OnRadExistPin();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_KPINPOLICYDLG_H__16C85866_596C_4F43_81E6_1A3426078D31__INCLUDED_)
